package com.shangyueshang.model;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author: JokeyZheng
 * @email: zhengjingfeng@ruqimobility.com
 * @created: 2022/2/18 17:41
 * @version: v1.0.0
 *
 * <p>商品库存管理表</p>
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName(autoResultMap = true)
public class GoodsInventory extends BaseModel implements BaseShopSkuKey, Serializable {
	
	/**
	 * 店铺
	 */
	private String shop;
	
	/**
	 * SKU
	 */
	private String sku;
	
	/**
	 * 可售库存数量
	 */
	private Integer onSaleQuantity;
	
	/**
	 * 在途库存数量
	 */
	private Integer fbaQuantity;
	
	/**
	 * 国内库存数量
	 */
	private Integer domesticQuantity;
	
	/**
	 * 日均销量
	 */
	private Integer estimateDaySoldQuantity;
	
	/**
	 * 安全库存天数
	 */
	private Integer inventorySafetyDay;
	
	/**
	 * 运输天数
	 */
	private Integer shippingDay;
	
	/**
	 * 交货周期
	 */
	private Integer produceDay;
	
	@Override
	public String shopSkuKey() {
		return this.shop + "-" + this.sku;
	}
}
